Wireless charging system, method for determining charging region, electronic device, and computer-readable storage medium

ABSTRACT

The disclosure relates to a wireless charging system, a determining method and device for a charging region, and an electronic device. The wireless charging system can include a wireless charging base and an electronic device. The wireless charging base includes a cylindrical magnet disposed axially along a thickness of the wireless charging base. The electronic device includes a charging coil component, a compass sensor which is configured to detect magnetic field intensities of a magnetic field generated by the cylindrical magnet in a first direction and in a second direction. The first direction is an axial direction of the cylindrical magnet and is perpendicular to the second direction. The electronic device further includes a processor configured to determine, according to the magnetic field intensities in the first direction and in the second direction, a charging region formed by the cylindrical magnet and adapted to the charging coil component.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims priority to Chinese PatentApplication 201910959250.0, filed on Oct. 10, 2019, the entire contentsof which are incorporated herein by reference.

TECHNICAL FIELD

The disclosure relates to the technical field of terminals, andparticularly relates to a wireless charging system, a method fordetermining a charging region, electronic devices, and acomputer-readable storage medium.

BACKGROUND

Currently, with increasing maturity of the technologies of electronicdevices, such as mobile phones or tablets, the market has put forwardhigher requirements on the convenience of the electronic devices. Inorder to solve the problems encountered when charging for an electronicdevice, such as any inconvenience that can be caused due to therestriction by a wire and that the wire can be easy to lose, researchershave developed wireless charging technology. Wireless charging may berealized through cooperation between a wireless charging base and theelectronic device.

SUMMARY

In the disclosure, a wireless charging system, a method for determininga charging region, electronic devices, and a computer-readable storagemedium are provided to solve the shortcomings of wireless charging.

According to a first aspect of embodiments of the disclosure, providedis an electronic device cooperating with a wireless charging base tocharge the electronic device wirelessly. The wireless charging base caninclude a cylindrical magnet, where the electronic device can include acharging coil component, and a compass sensor configured to detectmagnetic field intensities of a magnetic field generated by thecylindrical magnet in a first direction and a second direction. Thefirst direction is an axial direction of the cylindrical magnet, and thesecond direction is perpendicular to the first direction. The electronicdevice can further include a processor that is configured to determine,according to the magnetic field intensities in the first direction andthe second direction detected by the compass sensor, and a chargingregion adapted to the charging coil component. A point, at which themagnetic field intensity is zero in the first direction, is taken as afirst point, a point, at which the magnetic field intensity is zero inthe second direction, is taken as a second point, and the chargingregion is a circular region with the second point as a center of acircle, with a distance between the first point and the second point asa radius, and passing through the first point.

According to a second aspect of embodiments of the disclosure, providedis a method for determining a charging region, applied to an electronicdevice cooperating with a wireless charging base to charge theelectronic device wirelessly through the wireless charging base. Thewireless charging base in can include a cylindrical magnet disposedaxially along a thickness of the wireless charging base, and theelectronic device can include a charging coil component. The method caninclude acquiring magnetic field intensities of a magnetic fieldgenerated by the cylindrical magnet in a first direction and a seconddirection. The first direction is an axial direction of the cylindricalmagnet and the second direction is perpendicular to the first direction.The method can further include determining, according to the magneticfield intensities in the first direction and the second direction, acharging region formed by the cylindrical magnet and adapted to thecharging coil component. A point, at which the magnetic field intensityis zero in the first direction, is taken as a first point, a point, atwhich the magnetic field intensity is zero in the second direction, istaken as a second point, and the charging region is a circular regionwith the second point as a center of a circle, with a distance betweenthe first point and the second point as a radius, and passing throughthe first point.

According to a third aspect of embodiments of the disclosure, providedis an electronic device that can include a processor, and a memoryconfigured to store processor-executable instructions, wherein theprocessor, when in execution, is configured to acquire magnetic fieldintensities of a magnetic field generated by a cylindrical magnet in afirst direction and a second direction. The first direction is an axialdirection of the cylindrical magnet, and the second direction isperpendicular to the first direction. Further, the processor candetermine, according to the magnetic field intensities in the firstdirection and the second direction, a charging region adapted to acharging coil component. A point, at which the magnetic field intensityis zero in the first direction, is taken as a first point, a point, atwhich the magnetic field intensity is zero in the second direction, istaken as a second point, and the charging region is a circular regionwith the second point as a center of a circle, with a distance betweenthe first point and the second point as a radius, and passing throughthe first point.

According to a fourth aspect of embodiments of the disclosure, providedis a wireless charging system that can include an electronic deviceaccording to the first aspect of embodiments of the disclosure. Thewireless charging system can further include a wireless charging baseconfigured to charge the electronic device wirelessly, wherein thewireless charging base includes a cylindrical magnet disposed axiallyalong a thickness of the wireless charging base.

According to a fifth aspect of embodiments of the disclosure, providedis a computer-readable storage medium with computer instructions storedthereon, wherein the instructions, when executed by a processor,implement the steps of the method of any one of the above embodiments.

It should be understood that the general description above and thedetailed description hereinafter are merely exemplary and explanatory,but do not limit the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings incorporated herein and constituting part ofthe specification illustrate embodiments consistent with the disclosureand, together with the specification, serve to explain the principles ofthe disclosure.

FIG. 1 illustrates a schematic structural diagram of a wireless chargingsystem according to an exemplary embodiment.

FIG. 2 illustrates a schematic structural diagram of an electronicdevice according to an exemplary embodiment.

FIG. 3 illustrates a schematic diagram of a magnetic field of acylindrical magnet according to an exemplary embodiment.

FIG. 4 illustrates a schematic structural diagram of a wireless chargingbase according to an exemplary embodiment.

FIG. 5 illustrates a schematic cross-sectional diagram of an electronicdevice according to an exemplary embodiment.

FIG. 6 illustrates a schematic structural diagram of a magnetismisolation sheet according to an exemplary embodiment.

FIG. 7 illustrates a flow chart of a determining method for a chargingregion according to an exemplary embodiment.

FIG. 8 illustrates a block diagram of a determining device for acharging region according to an exemplary embodiment.

FIG. 9 illustrates a block diagram of another determining device for acharging region according to an exemplary embodiment.

FIG. 10 illustrates a block diagram of a further determining device fora charging region according to an exemplary embodiment.

FIG. 11 illustrates a block diagram of a yet further determining devicefor a charging region according to an exemplary embodiment.

FIG. 12 illustrates a block diagram of a determining device for acharging region according to an exemplary embodiment.

DETAILED DESCRIPTION

Reference will now be made in detail to exemplary embodiments, examplesof which are illustrated in the accompanying drawings. The followingdescription refers to the accompanying drawings in which the samenumbers in different drawings represent the same or similar elementsunless otherwise represented. The implementations set forth in thefollowing description of exemplary embodiments do not represent allimplementations consistent with the disclosure. Instead, they are merelyexamples of devices and methods consistent with aspects related to thedisclosure as recited in the appended claims.

The terms used in the disclosure are adopted for the purpose ofdescribing specific embodiments only, and are not intended to limit thisapplication. The singular forms “a/an”, “said” and “the” used in thedisclosure and the appended claims may further include plural formsunless the contexts clearly indicate other meanings. It should furtherbe understood that the term “and/or” used herein refers to and includesany or all possible combinations of one or more of the associated listeditems.

It should be understood that although the terms “first”, “second” and“third” may be employed in the disclosure to describe variousinformation, the information should not be limited to these terms. Theseterms are only used to distinguish the same type of information from oneanother. For example, “first information” may also be referred to as“second information” without departing from the scope of thisapplication. Similarly, “second information” may also be referred to as“first information”. Depending on the context, the word “if” as usedherein may be interpreted as “when” or “while” or “in response todetermining that”.

FIG. 1 illustrates a schematic structural diagram of a wireless chargingsystem 100 according to an exemplary embodiment. As illustrated in FIG.1, the wireless charging system 100 may include a wireless charging base1 and an electronic device 2 cooperating with the wireless charging base1, so as to charge a battery in the electronic device 2 wirelessly viathe interaction between the wireless charging base 1 and the electronicdevice 2. The wireless charging base 1 may include a cylindrical magnet11. The cylindrical magnet 11 may be disposed axially along a thicknessof the wireless charging base 1.

As shown in FIG. 2, the electronic device 2 may include a charging coilcomponent 22 and a compass sensor 23. The compass sensor 23 may beconfigured to detect magnetic field intensities of a magnetic fieldgenerated by the cylindrical magnet 11 in a first direction (that is, adirection denoted by an arrow A in FIG. 1) and a second direction (thatis, a direction denoted by an arrow B in FIG. 1). The first direction isan axial direction of the cylindrical magnet 11. The second direction isperpendicular to the first direction. The second direction may coincidewith any radial direction of the cylindrical magnet 11, which will notbe specified in the disclosure.

The electronic device 2 may further include a processor 24. Theprocessor 24 may communicate with the compass sensor 23 to acquire datadetected by the compass sensor 23. Specifically, the processor 24 may beconfigured to determine, according to the magnetic field intensities ofthe magnetic field in the first direction A and the second direction Bdetected by the compass sensor 23, a charging region formed by thecylindrical magnet 11 and adapted to the charging coil component 22.Specifically, a point, at which the magnetic field intensity is zero inthe first direction A, may be taken as a first point, and a point, atwhich the magnetic field intensity is zero in the second direction B,may be taken as a second point.

The charging region is a circular region with the second point as acenter of a circle, with a distance between the first point and thesecond point as a radius, and passing through the first point. When auser holds and moves the electronic device 2 to align the internalcharging coil component 22 with the circular region, the electronicdevice 2 can be charged. Specifically, an indication lamp may beprovided on the electronic device 2 to indicate the user that theelectronic device 2 is already aligned with the wireless charging base1. Alternatively, a charging indication mark may be displayed on adisplay interface of the electronic device 2 to prompt the user, whichwill not be specified in the disclosure.

The circular region formed by the cylindrical magnet 11 will bedescribed in detail in FIG. 3. As shown, with respect to the relativeposition between the cylindrical magnet 11 and the wireless chargingbase 1, it is assumed that a north magnetic pole of the cylindricalmagnet 11 is closer to a surface, for placing the electronic device 2,of the wireless charging base 1, and a south magnetic pole of thecylindrical magnet is closer to a bottom surface of the wirelesscharging base 1. When placed on the surface of the wireless chargingbase 1, the electronic device 2 will be in a magnetic field above thecylindrical magnet 11, that is, in a magnetic field closer to the northmagnetic pole.

Further, still as illustrated in FIG. 3, an axis of the cylindricalmagnet 11 is taken as a boundary, magnetic induction lines formed in aradial direction located at two sides of the axis are taken as anexample. For instance, in FIG. 3, magnetic induction lines L1, L2, andL3 are formed at the right of the cylindrical magnet 11, and magneticinduction lines L4, L5, and L6 are formed at the left of the cylindricalmagnet 11. With the magnetic induction line L1 and a coordinate systemxoy as an example, at the end of the magnetic induction line L1 closerto the north magnetic pole, an intensity B_(z1) of the magnetic field ina first direction A that can be detected by the compass sensor 23 ispositive. As gradually moving away from the north magnetic pole, themagnetic field intensity in the first direction A that can be detectedby the compass sensor 23 gradually decreases. Until the magnetic fieldintensity in the first direction A is detected to be zero at a point E₁.As further moving away from the north magnetic pole, the intensityB_(z1) of the magnetic field in the first direction A that can bedetected by the compass sensor 23 is negative. In this way, the compasssensor 23 can determine the edge of the charging region according to thechange in the direction of the detected magnetic field intensity.Similarly, by detecting the magnetic induction line L2, it can bedetermined that the intensity B_(z2) of the magnetic field is zero atE₂, is positive at the left of E₂, and is negative at the right of E₂.By detecting the magnetic induction line L3, it can be determined thatthe intensity B_(z3) of the magnetic field is zero at E₃, is positive atthe left of the E₃, and is negative at the right of the E₃. Of course,when the direction of the coordinate system xoy is changed, the positiveand negative property of the detected magnetic field intensity may bechanged correspondingly, which will not be specified in the disclosure.

Further, it is assumed that the electronic device 2 moves in a directiondenoted by an arrow C, after being placed on the wireless charging base1. At the right of the cylindrical magnet 11, the magnetic fieldintensity, detected by the compass sensor 23, on the magnetic inductionlines L1, L2 and L3 are all positive. At the left of the cylindricalmagnet, the magnetic field intensity, detected by the compass sensor 23,on the magnetic induction lines L1, L2 and L3 are all negative.Therefore, the compass sensor 23 or the processor 34 can determine acenter of a circle for a charging region according to the change in thedirection of the detected magnetic field intensity.

It can be understood that when the spaced distance between the compasssensor 23 and the cylindrical magnet 11 is different, the spaceddistance between the first point and the second point will also bedifferent. Specifically, the spaced distance between the compass sensor23 and the cylindrical magnet 11 is inversely related with the spaceddistance between the first point and the second point. That is to say,the larger the spaced distance between the compass sensor 23 and thecylindrical magnet 11, the smaller the corresponding charging regionwill be. It can be seen that, according to the technical solution of thedisclosure, a corresponding charging region can be determined for adifferent electronic device 2, improving the efficiency of a chargingprocess.

In view of the above embodiment, a wireless charging base 1 asillustrated in FIG. 4 is further provided in the disclosure. Thewireless charging base 1 may include a cylindrical magnet 11 and a shell12. The cylindrical magnet 11 is disposed in the shell 12 and forms amagnetic field outside the shell 12. The cylindrical magnet 11 isdisposed axially along a thickness of the wireless charging base 1. Asillustrated in FIG. 4, the shell 12 may be a cylinder. In otherembodiments, the shell 12 may also be other shapes, such as a cube, acuboid, or an ellipsoid, which will not be specified in the disclosure.

In view of the above embodiment, an electronic device 2 is furtherprovided in the disclosure. The electronic device 2 can cooperate withthe wireless charging base 1 as illustrated in FIG. 4 to charge theelectronic device 2 wirelessly. As illustrated in FIG. 2, FIG. 5, andFIG. 6, the electronic device 2 may include a charging coil component22, a compass sensor 23, and a processor 24. The compass sensor 23 isconfigured to detect magnetic field intensities of a magnetic fieldgenerated by the cylindrical magnet 11 in a first direction and a seconddirection. The first direction is an axial direction of the cylindricalmagnet 11, and the second direction is perpendicular to the firstdirection. The processor 24 is configured to determine, according to themagnetic field intensities in the first direction and the seconddirection detected by the compass sensor 23, a charging region adaptedto the charging coil component 22. A point, at which the magnetic fieldintensity is zero in the first direction, is taken as a first point, anda point, at which the magnetic field intensity is zero in the seconddirection, is taken as a second point. The charging region is a circularregion with the second point as a center of a circle, with a distancebetween the first point and the second point as a radius, and passingthrough the first point.

In view of this embodiment, due to the influence from a manufacturingprocess, three axes in the compass sensor 23 may not be orthogonal toone another, so non-orthogonal errors of the compass sensor 23 need tobe corrected. After non-orthogonal coordinate system correction, thethree axes in the compass sensor may be considered to be orthogonal toone another. However, when the compass sensor 23 is installed in theelectronic device, due to installation errors, it is not necessarilyensured that a coordinate system of the compass sensor 23 is parallel toa coordinate system of the electronic device. Therefore, it is furtherneeded to correct the installation errors of the data acquired by thecompass sensor 23, to obtain the magnetic field intensity described inthe above embodiment.

In an embodiment, the electronic device 2 may further include a backplate 21 and a magnetism isolation sheet 25. The magnetism isolationsheet 25 is located on one side of the charging coil component 22 awayfrom the back plate 21, and the magnetism isolation sheet 25 is acircular sheet. The magnetism isolation sheet 3 may perform symmetriccompression on the magnetic field generated by the cylindrical magnet11, thereby reducing the influence of the magnetism isolation sheet 25on the magnetic field, and being favorable for improving the accuracy ofthe magnetic field intensity detected by the compass sensor 23.

In another embodiment, the processor 24 may further correct the magneticfield having been through non-error correction and installation errorcorrection, to obtain a first corrected magnetic field intensity in afirst direction and a second corrected magnetic field intensity in asecond direction. A point, at which the first corrected magnetic fieldintensity is zero, is taken as a first point, and a point, at which thesecond corrected magnetic field intensity is zero, is taken as a secondpoint.

Specifically, the processor 24 may be configured to perform hardmagnetic correction or soft magnetic correction on the detected magneticfield. Of course, in other embodiments, hard magnetic correction andsoft magnetic correction may be performed on the magnetic field, whichwill not be specified in the disclosure. A particular correctionsolutions for hard magnetic correction and soft magnetic correction areas follows:

In an embodiment, when the magnetic field generated by the wirelesscharging base 1 is subjected to a constant magnetic field, hard magneticcorrection may be performed. For example, when the electronic device 2moves on the wireless charging base 1 in an 8-shaped movement track, theprocessor 24 may correct the magnetic field according to an extremevalue of the detected magnetic field intensities in the first directionA and the second direction B. Specifically, when the electronic device 2moves in an 8-shaped movement track, a maximum value and a minimum valueof the magnetic field intensities in the first direction and the seconddirection are acquired and then, the magnetic field is correctedaccording to an average value of the maximum value and the minimumvalue.

In another embodiment, when the magnetic field generated by the wirelesscharging base 1 is subjected to a magnetic material or other magnetismisolation materials, soft magnetic correction may be performed. Forexample, the processor 24 may also perform ellipsoid fitting correctionaccording to multiple groups of detected magnetic field intensities,each group including a detected magnetic field intensity in the firstdirection, a detected magnetic field intensity in the second directionand a detected magnetic field intensity in a third direction. The thirddirection is perpendicular to the first direction and the seconddirection.

Specifically, the soft magnetic correction is to correct an ellipsoidalmagnetic field formed by compression due to the influence of externalfactors, into a regular spherical magnetic field. It can be understoodthat a regular ellipsoid comply with the following formula in acoordinate system of xyz-o:

(x−x ₀)² /a ²+(y−y ₀)² /b ²+(z−z ₀)² /c ² =R ²,

where a is a radius on an x axis, b is a radius on a y axis, c is aradius on a z axis, and R, x₀, y₀ and z₀ are constants.

The regular sphere may meet:

x ² +y ² +z ² =R ²,

where R is a radius.

Further, it may be assumed that the measured values detected by thecompass sensor 23 are [x₁, y₁, z₁], where x₁ is a magnetic fieldintensity on the x axis, y₁ is a magnetic field intensity on the y axis,and z₁ is a translation parameter on the z axis. It is assumed that thecorrected values are [x₂, y₂, z₂], where x₂ is the corrected magneticfield intensity on the x axis, y₂ is the corrected magnetic fieldintensity on the y axis, and z₂ is the corrected magnetic fieldintensity on the z axis. Further, it may be assumed that translationparameters between the ellipsoidal magnetic field and the sphericalmagnetic field are [o_(x), o_(y), o_(x)], where o_(x) is a translationparameter on the x axis, o_(y) is a translation parameter on the y axis,and o_(z) is a translation parameter on the z axis. It is assumed thatscaling parameters are [g_(x), g_(y), g_(z)], where g_(x) is a scalingparameter on the x axis, g_(y) is a scaling parameter on the y axis, andg_(z) is a scaling parameter on the z axis, thereby obtaining:

x ₂=[x ₁ +o _(x)]×g _(x);

y ₂=[y ₁ +o _(y)]×g _(y);

z ₂=[z ₁ +o _(z)]×g _(z).

The relationship between the measured values and the corrected values issubstituted into the regular sphere formula to further solve o_(x),o_(y), o_(z), g_(x), g_(y) and g_(z) by means of derivation, a Gaussianelimination method, a least square method, etc. The solved o_(x), o_(y),o_(z), g_(Y) g_(y) and g_(z) are substituted into the relationshipbetween the measured values and the corrected values again to obtain thecorrected values, thus completing the ellipsoid fitting correction.

With the corrected magnetic field obtained based on any one of the abovemodes, the first corrected magnetic field intensity in the firstdirection and the second corrected magnetic field intensity in thesecond direction may be obtained according to the relationship betweenthe magnetic field before the correction and the magnetic field afterthe correction, and the detected magnetic field intensities. A point, atwhich the first corrected magnetic field intensity is zero, is taken asa first point, and a point, at which the second corrected magnetic fieldintensity is zero, is taken as a second point. A charging region is acircular region with the second point as a center of a circle, with adistance between the first point and the second point as a radius, andpassing through the first point.

Based on the technical solution of the disclosure, a determining methodfor a charging region is further provided. The determining method isapplied to an electronic device. The electronic device can cooperatewith a wireless charging base to charge the electronic devicewirelessly. The wireless charging base includes a cylindrical magnetdisposed axially along a thickness of the wireless charging base, andthe electronic device includes a charging coil component.

FIG. 7 illustrates a flow chart of a determining method for a chargingregion according to an exemplary embodiment. As illustrated in FIG. 7,the method is applied to a terminal and may include the following steps:

In step 601, magnetic field intensities of a magnetic field generated bythe cylindrical magnet in a first direction and a second direction areacquired. The first direction is an axial direction of the cylindricalmagnet, and the second direction is perpendicular to the firstdirection. In this embodiment, the magnetic field intensities in thefirst direction and the second direction may be acquired through thecompass sensor 23. The first direction is an axial direction of thecylindrical magnet 11, and the second direction is perpendicular to thefirst direction. The second direction may be any radial direction of thecylindrical magnet 11, which will not be specified in the disclosure.

In step 602, a charging region formed by the cylindrical magnet andadapted to the charging coil component is determined according to themagnetic field intensities in the first direction and the seconddirection. A point, at which the magnetic field intensity is zero in thefirst direction, is taken as a first point, and a point, at which themagnetic field intensity is zero in the second direction, is taken as asecond point. The charging region is a circular region with the secondpoint as a center of a circle, with a distance between the first pointand the second point as a radius, and passing through the first point.

In this embodiment, by detecting the magnetic field intensities in thefirst direction and the second direction, the first point at which themagnetic field intensity is zero in the first direction and the secondpoint at which the magnetic field intensity is zero in the seconddirection can be determined. A radius of the charging region isdetermined according to the distance between the first point and thesecond point. A circular region passing through the first point isformed by taking the second point as a center of a circle. As such, thecircular region is the charging region adapted to the charging coilcomponent.

It can be understood that when the spaced distance between the compasssensor 23 and the cylindrical magnet 11 is different, the spaceddistance between the first point and the second point will also bedifferent. Specifically, the spaced distance between the compass sensor23 and the cylindrical magnet 11 is inversely related with the spaceddistance between the first point and the second point. That is to say,the larger the spaced distance between the compass sensor 23 and thecylindrical magnet 11, the smaller the corresponding charging regionwill be.

In the above embodiments, the determining method may further include thefollowing step of correcting the detected magnetic field to obtain afirst corrected magnetic field intensity in the first direction and asecond corrected magnetic field intensity in the second direction. Apoint, at which the first corrected magnetic field intensity is zero, istaken as the first point, and a point, at which the second correctedmagnetic field intensity is zero, is taken as the second point. Based onthis, by correcting the magnetic field, the influence of an externalmagnetic field on the magnetic field generated by the cylindrical magnetmay be reduced, and the accuracy of the alignment between the electronicdevice 2 and the wireless charging base 1 may be improved.

Specifically, the processor 24 of the electronic device may be furtherconfigured to perform hard magnetic correction or soft magneticcorrection on the detected magnetic field. Of course, in otherembodiments, hard magnetic correction and soft magnetic correction maybe performed on the magnetic field, which will not be specified in thedisclosure.

Specifically, in an embodiment, when the electronic device 2 moves onthe wireless charging base 1 in an 8-shaped movement track, theprocessor 24 may correct the magnetic field according to an extremevalue of the detected magnetic field intensities in the first directionA and the second direction B. Specifically, when the electronic device 2moves in an 8-shaped movement track, a maximum value and a minimum valueof the magnetic field intensities in the first direction and the seconddirection are acquired. Then, the magnetic field is corrected accordingto an average value of the maximum value and the minimum value.

In another embodiment, the processor 24 may further perform ellipsoidfitting correction according to multiple groups of detected magneticfield intensities, each group including a detected magnetic fieldintensity in the first direction, a detected magnetic field intensity inthe second direction and a detected magnetic field intensity in a thirddirection. The third direction is perpendicular to the first directionand the second direction.

Specifically, the soft magnetic correction is to correct an ellipsoidalmagnetic field formed by compression due to the influence of externalfactors, into a regular spherical magnetic field. It can be understoodthat a regular ellipsoid complies with the following formula:

(x−x ₀)² /a ²+(y−y ₀)² /b ²+(z−z ₀)² /c ² =R ²;

and a regular sphere may comply with:

x ² +y ² +z ² =R ².

Further, it can be assumed that the measured values detected by thecompass sensor 23 are [x₁, y₁, z₁], and the corrected values are [x₂,y₂, z₂]. It can be further assumed that translation parameters betweenthe ellipsoidal magnetic field and the spherical magnetic field are[o_(x), o_(y), o_(x)], and scaling parameters are [g_(x), g_(y), g_(z)],thereby obtaining:

x ₂=[x ₁ +o _(x)]×g _(x);

y ₂=[y ₁ +o _(y)]×g _(y);

z ₂=[z ₁ +o _(z)]×g _(z).

The relationship between the measured values and the corrected values issubstituted into the regular sphere formula to further solve o_(x),o_(y), o_(z), g_(x), g_(y) and g_(z) by means of derivation, a Gaussianelimination method, a least square method, etc. The solved o_(x), o_(y),o_(z), g_(x), g_(y) and g_(z) are substituted into the relationshipbetween the measured values and the corrected values again to obtain thecorrected values, thus completing the ellipsoid fitting correction.

Corresponding to the aforementioned embodiments of the determiningmethod for a charging region, embodiments of a determining device for acharging region is further provided in the disclosures.

FIG. 8 illustrates a block diagram of a determining device for acharging region according to an exemplary embodiment. The determiningdevice is applied to an electronic device. The electronic device maycooperate with a wireless charging base to charge the electronic devicewirelessly. The wireless charging base includes a cylindrical magnetdisposed axially along a thickness of the wireless charging base. Theelectronic device includes a charging coil component.

As illustrated in FIG. 8, the determining device includes an acquisitionmodule 701 and a determination module 702. The acquisition module 701can be configured to acquire magnetic field intensities of a magneticfield generated by the cylindrical magnet in a first direction and asecond direction. The first direction is an axial direction of thecylindrical magnet, and the second direction is perpendicular to thefirst direction.

The determination module 702 can be configured to determine, accordingto the magnetic field intensities in the first direction and the seconddirection, a charging region formed by the cylindrical magnet andadapted to the charging coil component. A point, at which the magneticfield intensity is zero in the first direction, is taken as a firstpoint, and a point, at which of the magnetic field intensity is zero inthe second direction, is taken as a second point. The charging region isa circular region with the second point as a center of a circle, with adistance between the first point and the second point as a radius, andpassing through the first point.

FIG. 9 illustrates a block diagram of another determining device for acharging region according to an exemplary embodiment. In thisembodiment, on the basis of the above embodiment as illustrated in FIG.8, the determining device may further include a correction module 703.

The correction module 703 can be configured to correct the detectedmagnetic field to obtain a first corrected magnetic field intensity inthe first direction and a second corrected magnetic field intensity inthe second direction. A point, at which the first corrected magneticfield intensity is zero, is taken as the first point, and a point, atwhich the second corrected magnetic field intensity is zero, is taken asthe second point.

FIG. 10 illustrates a block diagram of another determining device for acharging region according to an exemplary embodiment. In thisembodiment, on the basis of the above embodiment as illustrated in FIG.9, the correction module 703 may include a first acquisition unit 7031and a first correction unit 7032.

The first acquisition unit 7031 can be configured to acquire an extremevalue of the magnetic field intensities in the first direction and thesecond direction, when the electronic device moves on the wirelesscharging base in an 8-shaped movement track.

The first correction unit 7032 can be configured to correct the magneticfield according to the extreme value of the magnetic field intensitiesin the first direction and the second direction.

FIG. 11 illustrates a block diagram of another determining device for acharging region according to an exemplary embodiment. In thisembodiment, on the basis of the above embodiment as illustrated in FIG.9, the correction module 703 may include a second acquisition unit 7033and a second correction unit 7034.

The second acquisition unit 7033 can be configured to acquire multiplegroups of magnetic field intensities, each group including a magneticfield intensity in the first direction, a magnetic field intensity inthe second direction and a magnetic field intensity in a thirddirection. The third direction is perpendicular to the first directionand the second direction.

The second correction unit 7034 can be configured to correct themagnetic field according to the multiple groups of magnetic fieldintensities and an ellipsoid fitting correction algorithm.

In the device of the above embodiments, the particular mode of eachmodule executing an operation has been described in detail in theembodiments related to the method and will not be described in detailherein.

Since the device embodiments substantially correspond to the methodembodiments, the description in the method embodiments can be referredto for related parts. The device embodiments described above are onlyexemplary. The units described as separate components may be or may notbe physically separated, and the components displayed as units may be ormay not be physical units, may be located in one place, or may bedistributed on multiple network units. Some or all of the modules may beselected according to actual needs to achieve the objectives of thesolution of the disclosure, and can be understood and practiced by thoseskilled in the art without any creative effort.

Correspondingly, a determining device for a charging region, applied toan electronic device is further provided in the disclosure. Theelectronic device can cooperate with a wireless charging base to chargethe electronic device wirelessly. The wireless charging base includes acylindrical magnet disposed axially along a thickness of the wirelesscharging base. The electronic device includes: a charging coilcomponent, a processor, and a memory configured to storeprocessor-executable instructions. The processor is configured toacquire magnetic field intensities of a magnetic field generated by thecylindrical magnet in a first direction and a second direction. Thefirst direction is an axial direction of the cylindrical magnet, and thesecond direction is perpendicular to the first direction. The processoris further configured to determine, according to the magnetic fieldintensities in the first direction and the second direction, a chargingregion formed by the cylindrical magnet and adapted to the charging coilcomponent. A point, at which the magnetic field intensity is zero in thefirst direction, is taken as a first point, and a point, at which themagnetic field intensity is zero in the second direction, is taken as asecond point. The charging region is a circular region with the secondpoint as a center of a circle, with a distance between the first pointand the second point as a radius, and passing through the first point.

Correspondingly, further provided in the disclosure is a terminal thatcan cooperate with a wireless charging base to charge the electronicdevice wirelessly. The wireless charging base includes a cylindricalmagnet disposed axially along a thickness of the wireless charging base.The electronic device includes a charging coil component. The terminalincludes a memory, and one or more programs stored in the memory.Instructions, included in one or more programs, for performing thefollowing operations are executed by one or more processors. Magneticfield intensities of a magnetic field generated by the cylindricalmagnet in a first direction and a second direction are acquired. Thefirst direction is an axial direction of the cylindrical magnet, and thesecond direction is perpendicular to the first direction. A chargingregion formed by the cylindrical magnet and adapted to the charging coilcomponent is determined according to the magnetic field intensities inthe first direction and the second direction. A point, at which themagnetic field intensity is zero in the first direction, is taken as afirst point, and a point at which the magnetic field intensity is zeroin the second direction, is taken as a second point. The charging regionis a circular region with the second point as a center of a circle, witha distance between the first point and the second point as a radius, andpassing through the first point.

FIG. 12 illustrates a block diagram of a determining device 900 of acharging region according to an exemplary embodiment. For example, thedevice 900 may be a mobile phone, a computer, a digital broadcastterminal, a messaging device, a gaming console, a tablet device, amedical device, exercise equipment, a personal digital assistant, andthe like.

As illustrated in FIG. 12, the device 900 may include one or more of thefollowing components: a processing component 902, a memory 904, a powercomponent 906, a multimedia component 908, an audio component 910, anInput/Output (I/O) interface 912, a sensor component 914, and acommunication component 916.

The processing component 902 typically controls the overall operation ofthe device 900, such as operations associated with display, telephonecalls, data communications, camera operations, and recording operations.The processing component 902 may include one or more processors 920 toexecute instructions to perform all or some of the steps in the abovedescribed methods. Moreover, the processing component 902 may includeone or more modules which facilitate the interaction between theprocessing component 902 and other components. For instance, theprocessing component 902 may include a multimedia module to facilitatethe interaction between the multimedia component 908 and the processingcomponent 902.

The memory 904 is configured to store various types of data to supportthe operation of the device 900. Examples of such data includeinstructions for any applications or methods operated on the device 900,contact data, phone book data, messages, pictures, videos, etc. Thememory 904 may be implemented using any type of volatile or non-volatilememory devices, or a combination thereof, such as a Static Random AccessMemory (SRAM), an Electrically Erasable Programmable Read-Only Memory(EEPROM), an Erasable Programmable Read-Only Memory (EPROM), aProgrammable Read-Only Memory (PROM), a Read-Only Memory (ROM), amagnetic memory, a flash memory, a magnetic disk or an optical disk.

The power component 906 provides power to various components of thedevice 900. The power component 906 may include a power managementsystem, one or more power sources, and any other components associatedwith the generation, management, and distribution of power in the device900.

The multimedia component 908 includes a screen providing an outputinterface between the device 900 and a user. In some embodiments, thescreen may include a Liquid Crystal Display (LCD) and a Touch Panel(TP). If the screen includes the touch panel, the screen may beimplemented as a touch screen to receive input signals from the user.The touch panel includes one or more touch sensors to sense touches,swipes, and gestures on the touch panel. The touch sensors may not onlysense a boundary of a touch or swipe action, but further sense a periodof time and a pressure associated with the touch or swipe action. Insome embodiments, the multimedia component 908 includes a front cameraand/or a rear camera. The front camera and/or the rear camera mayreceive external multimedia data while the device 900 is in an operatingmode, such as a photographing mode or a video mode. Each of the frontcamera and the rear camera may be a fixed optical lens system or havefocus and optical zoom capability.

The audio component 910 is configured to output and/or input audiosignals. For example, the audio component 910 includes a microphone(MIC) configured to receive an external audio signal when the device 900is in an operating mode, such as a call mode, a recording mode, and avoice recognition mode. The received audio signal may be further storedin the memory 904 or transmitted via the communication component 916. Insome embodiments, the audio component 910 further includes a speaker tooutput audio signals.

The I/O interface 912 provides an interface between the processingcomponent 902 and peripheral interface modules, such as a keyboard, aclick wheel, buttons, and the like. The buttons may include, but are notlimited to, a home button, a volume button, a start button, and a lockbutton.

The sensor component 914 includes one or more sensors configured toprovide status assessments in various aspects for the device 900. Forinstance, the sensor component 914 may detect an on/off status of thedevice 900, relative positioning of the components, e.g., the displayand the keypad, of the device 900. The sensor component 914 may furtherdetect a change in position of the device 900 or a component of thedevice 900, presence or absence of contact between the user and thedevice 900, an orientation or an acceleration/deceleration of the device900, and a change in temperature of the device 900. The sensor component914 may include a proximity sensor configured to detect presence of anobject nearby without any physical contact. The sensor component 914 mayalso include a light sensor, such as a Complementary Metal OxideSemiconductor (CMOS) or Charge Coupled Device (CCD) image sensor,configured for use in an imaging application. In some embodiments, thesensor component 914 may further include an acceleration sensor, agyroscope sensor, a magnetic sensor, a pressure sensor, or a temperaturesensor.

The communication component 916 is configured to facilitate wired orwireless communication between the device 900 and another device. Thedevice 900 may access a communication-standard-based wireless network,such as a Wireless Fidelity (WiFi) network, a 2nd-Generation (2G) or5th-Generation (5G) network or a combination thereof. In someembodiments, the communication component 916 receives a broadcast signalor broadcast associated information from an external broadcastmanagement system through a broadcast channel. In some embodiments, thecommunication component 916 further includes a Near Field Communication(NFC) module to facilitate short-range communication. For example, theNFC module may be implemented based on a Radio Frequency Identification(RFID) technology, an Infrared Data Association (IrDA) technology, anUltra-WideBand (UWB) technology, a Bluetooth (BT) technology and anothertechnology

In some embodiments, the device 900 may be implemented by one or moreApplication Specific Integrated Circuits (ASICs), Digital SignalProcessors (DSPs), Digital Signal Processing Devices (DSPDs),Programmable Logic Devices (PLDs), Field Programmable Gate Arrays(FPGAs), controllers, micro-controllers, microprocessors or otherelectronic components, and is configured to execute the abovementionedmethod.

In exemplary embodiments, there is also provided a non-transitorycomputer-readable storage medium including instructions, such as thememory 904 including an instruction, and the instruction may be executedby the processor 920 of the device 900 to implement the abovementionedmethod. For example, the non-transitory computer-readable storage mediummay be a ROM, a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape,a floppy disc, an optical data storage device and the like.

In the disclosure, it is to be understood that the terms “first” and“second” are used for descriptive purposes only and are not to beconstrued as indicating or implying a relative importance or implicitlyindicating the number of technical features indicated. Thus, elementsreferred to as “first” and “second” may include one or more of thefeatures either explicitly or implicitly. In the description of thepresent disclosure, “a plurality” indicates two or more unlessspecifically defined otherwise.

While this specification contains many specific implementation details,these should not be construed as limitations on the scope of any claims,but rather as descriptions of features specific to particularimplementations. Certain features that are described in thisspecification in the context of separate implementations can also beimplemented in combination in a single implementation. Conversely,various features that are described in the context of a singleimplementation can also be implemented in multiple implementationsseparately or in any suitable subcombinations.

Moreover, although features can be described above as acting in certaincombinations and even initially claimed as such, one or more featuresfrom a claimed combination can in some cases be excised from thecombination, and the claimed combination can be directed to asubcombination or variations of a subcombination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingcan be advantageous. Moreover, the separation of various systemcomponents in the implementations described above should not beunderstood as requiring such separation in all implementations, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

Other implementations of the disclosure will be apparent to thoseskilled in the art from consideration of the specification and practiceof the disclosure here. The disclosure is intended to cover anyvariations, uses, or adaptations of the disclosure following the generalprinciples thereof and including such departures from the disclosure ascome within known or customary practice in the art. It is intended thatthe specification and embodiments be considered as exemplary only, witha true scope and spirit of the disclosure being indicated by thefollowing claims.

It will be appreciated that the disclosure is not limited to the exactconstruction that has been described above and illustrated in theaccompanying drawings, and that various modifications and changes can bemade without departing from the scope thereof. It is intended that thescope of the disclosure only be limited by the appended claims.

What is claimed is:
 1. An electronic device capable of being wirelesslycharged by a wireless charging base having a cylindrical magnet, whereinthe electronic device comprises: a charging coil component; a compasssensor that is configured to detect magnetic field intensities of amagnetic field generated by the cylindrical magnet in a first directionthat is an axial direction of the cylindrical magnet and a seconddirection that is perpendicular to the first direction; and a processorthat is configured to determine, according to the magnetic fieldintensities in the first direction and the second direction detected bythe compass sensor, a charging region adapted to the charging coilcomponent, wherein a point at which the magnetic field intensity is zeroin the first direction is taken as a first point, a point at which themagnetic field intensity is zero in the second direction is taken as asecond point, and the charging region is a circular region with thesecond point as a center of a circle, with a distance between the firstpoint and the second point as a radius, and passing through the firstpoint.
 2. The electronic device of claim 1, further comprising: a backplate; and a magnetism isolation sheet that is a circular sheet locatedon one side of the charging coil component away from the back plate. 3.The electronic device of claim 1, wherein: the processor is furtherconfigured to correct the detected magnetic field to obtain a firstcorrected magnetic field intensity in the first direction and a secondcorrected magnetic field intensity in the second direction, and a point,at which the first corrected magnetic field intensity is zero, is takenas the first point, and a point, at which the second corrected magneticfield intensity is zero, is taken as the second point.
 4. The electronicdevice of claim 3, wherein the processor is configured to perform atleast one of the following on the detected magnetic field: hard magneticcorrection or soft magnetic correction.
 5. The electronic device ofclaim 4, wherein when the electronic device moves on the wirelesscharging base in an 8-shaped movement track, the processor is configuredto correct the magnetic field according to an extreme value of thedetected magnetic field intensities in the first direction and thesecond direction.
 6. The electronic device of claim 4, wherein theprocessor is configured to perform ellipsoid fitting correctionaccording to multiple groups of detected magnetic field intensities,each group including a detected magnetic intensity in the firstdirection, a detected magnetic intensity in the second direction, and adetected magnetic intensity a third direction, wherein the thirddirection is perpendicular to the first direction and the seconddirection.
 7. A method for determining a charging region, applied to anelectronic device cooperating with a wireless charging base towirelessly charge the electronic device through the wireless chargingbase, the wireless charging base having a cylindrical magnet disposedaxially along a thickness of the wireless charging base, and theelectronic device having a charging coil component, wherein the methodcomprises: acquiring magnetic field intensities of a magnetic fieldgenerated by the cylindrical magnet in a first direction and a seconddirection, wherein the first direction is an axial direction of thecylindrical magnet and the second direction is perpendicular to thefirst direction; and determining, according to the magnetic fieldintensities in the first direction and the second direction, a chargingregion adapted to the charging coil component, wherein a point, at whichthe magnetic field intensity is zero in the first direction, is taken asa first point, a point, at which the magnetic field intensity is zero inthe second direction, is taken as a second point, and the chargingregion is a circular region with the second point as a center of acircle, with a distance between the first point and the second point asa radius, and passing through the first point.
 8. The method of claim 7,further comprising: correcting the acquired magnetic field to obtain afirst corrected magnetic field intensity in the first direction and asecond corrected magnetic field intensity in the second direction; andtaking a point, at which the first corrected magnetic field intensity iszero, as the first point, and taking a point, at which the secondcorrected magnetic field intensity is zero, as the second point.
 9. Themethod of claim 8, wherein correcting the acquired magnetic fieldcomprises: when the electronic device moves on the wireless chargingbase in an 8-shaped movement track, acquiring an extreme value of themagnetic field intensities in the first direction and the seconddirection; and correcting the magnetic field according to the extremevalue of the magnetic field intensities in the first direction and thesecond direction.
 10. The method of claim 8, wherein correcting theacquired magnetic field comprises: acquiring multiple groups of magneticfield intensities, each group including a magnetic field intensity inthe first direction, a magnetic field intensity in the second direction,and a magnetic field intensity in a third direction, wherein the thirddirection is perpendicular to the first direction and the seconddirection; and correcting the magnetic field according to the multiplegroups of magnetic field intensities and an ellipsoid fitting correctionalgorithm.
 11. An electronic device having a processor and a memory thatis configured to store processor-executable instructions that, whenexecuted by the processor, cause the processor to: acquire magneticfield intensities of a magnetic field generated by a cylindrical magnetin a first direction and a second direction, wherein the first directionis an axial direction of the cylindrical magnet, and the seconddirection is perpendicular to the first direction; and determine,according to the magnetic field intensities in the first direction andthe second direction, a charging region adapted to a charging coilcomponent, wherein a point, at which the magnetic field intensity iszero in the first direction, is taken as a first point, a point, atwhich the magnetic field intensity is zero in the second direction, istaken as a second point, and the charging region is a circular regionwith the second point as a center of a circle, with a distance betweenthe first point and the second point as a radius, and passing throughthe first point.
 12. The electronic device of claim 11, wherein theprocessor is further configured to: correct the acquired magnetic fieldto obtain a first corrected magnetic field intensity in the firstdirection and a second corrected magnetic field intensity in the seconddirection; and take a point, at which the first corrected magnetic fieldintensity is zero, as the first point, and taking a point, at which thesecond corrected magnetic field intensity is zero, as the second point.13. The electronic device of claim 12, wherein the processor is furtherconfigured to: acquire an extreme value of the magnetic fieldintensities in the first direction and the second direction when theelectronic device moves on the wireless charging base in an 8-shapedmovement track; and correct the magnetic field according to the extremevalue of the magnetic field intensities in the first direction and thesecond direction.
 14. The electronic device of claim 12, wherein theprocessor is further configured to: acquire multiple groups of magneticfield intensities, each group including a magnetic field intensity inthe first direction, a magnetic field intensity in the second directionand a magnetic field intensity in a third direction, wherein the thirddirection is perpendicular to the first direction and the seconddirection; and correct the magnetic field according to the multiplegroups of magnetic field intensities and an ellipsoid fitting correctionalgorithm.
 15. A computer-readable storage medium with computerinstructions stored thereon, wherein the instructions, when executed bya processor, implement the steps of the method of claim
 1. 16. Thecomputer-readable storage medium of claim 15, wherein the method furthercomprises: correcting the acquired magnetic field to obtain a firstcorrected magnetic field intensity in the first direction and a secondcorrected magnetic field intensity in the second direction; and taking apoint, at which the first corrected magnetic field intensity is zero, asthe first point, and taking a point, at which the second correctedmagnetic field intensity is zero, as the second point.
 17. Thecomputer-readable storage medium of claim 16, wherein correcting theacquired magnetic field comprises: when the electronic device moves onthe wireless charging base in an 8-shaped movement track, acquiring anextreme value of the magnetic field intensities in the first directionand the second direction; and correcting the magnetic field according tothe extreme value of the magnetic field intensities in the firstdirection and the second direction.
 18. The computer-readable storagemedium of claim 16, wherein correcting the acquired magnetic fieldcomprises: acquiring multiple groups of magnetic field intensities, eachgroup including a magnetic field intensity in the first direction, amagnetic field intensity in the second direction and a magnetic fieldintensity in a third direction, wherein the third direction isperpendicular to the first direction and the second direction; andcorrecting the magnetic field according to the multiple groups ofmagnetic field intensities and an ellipsoid fitting correctionalgorithm.